import ajax from "../../http.js"

//获取首页卡片数据
export const getLabelList = data => ajax({
	name: "get-label-list",
	data
})

//获取文章列表
export const getArticleList = data => ajax({
	name: 'get_article_list',
	data
})

//用户收藏&取消 文章
export const update_save_like = data => ajax({
	name: "update_save_like",
	data
})

//搜索文章
export const get_search = data => ajax({
	name: "get_search",
	data
})

//标签设置
export const updata_label_ids = data => ajax({
	name: "updata_label_ids",
	data
})

//文章详情
export const get_article_detail = data => ajax({
	name: "get_article_detail",
	data
})

//评论上传
export const updata_comment_data = data => ajax({
	name: "updata_comment_data",
	data
})

//获取评论数据
export const get_comment_list = data => ajax({
	name: "get_comment_list",
	data
})

//获取收藏的文章列表
export const get_follow_list = data => ajax({
	name: "get_follow_list",
	data
})

//获取关注作者列表
export const get_author_list = data => ajax({
	name: "get_author_list",
	data
})
